package org.rcy.ruicingmarket.oss.role;

import org.apache.ibatis.annotations.Param;
import org.rcy.framework.data.dao.BaseDao;
import org.rcy.ruicingmarket.role.RoleQueryCondition;

import java.util.List;

/**
 * @author 吴康桥
 * @Description
 * @date 2022/10/9 16:58
 */

public interface RoleDao extends BaseDao<Role>{
	void bindUser(@Param("roleId")Long roleId,@Param("userId")Long userId);
	void bindView(@Param("roleId")Long roleId,@Param("menuId")Long viewId);
	List<Role> getRolesByUserId(@Param("uid") Long uid);
	List<Long> findRoleIdsByUids(@Param("uids")List<Long> uids);
	int countCondition(RoleQueryCondition condition);

	List<Role> pageQuery(RoleQueryCondition condition);
}
